package com.triones.framework.common.util.weixin;

public class GetRSAUtil {

    public static String getRSA(String str,String publicKeyPKCS8) throws Exception {
        byte[] cipherData=RSAEncrypt.encrypt(RSAEncrypt.loadPublicKeyByStr(publicKeyPKCS8),str.getBytes("UTF-8"));
        String cipher = Base64Util.encode(cipherData);
        return cipher;
    }
}
